package org.jeecg.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.common.api.vo.Result;
import org.jeecg.entity.meter.Meter;
import org.jeecg.model.charge.reqvo.DayReportReqVo;
import org.jeecg.model.charge.resvo.DayReportRespVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @Description: 能耗meter
 * @Author: liuR
 * @Date:   2021-02-05
 * @Version: V1.0
 */
@FeignClient("CIM-METER")
public interface IFeignMeterService {

	@RequestMapping(value = "/api/meter/hand/rollBackBillsStatus",method = RequestMethod.POST)
	Integer rollBackBillsStatus(@RequestParam("handId") String handId, @RequestHeader("tenantId") String tenantId);

	@RequestMapping(value = "/api/meter/meterFindGroupList",method = RequestMethod.POST)
	List<DayReportRespVo> meterFindGroupList(@RequestBody DayReportReqVo dayReportReqVo, @RequestHeader("tenantId") String tenantId);
 	/*关联仪表信息*/
	@RequestMapping(value = "/api/meter/meterList",method = RequestMethod.GET)
	Result<Page<Meter>> meterList(@RequestParam(name = "roomId") String roomId,
								  @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
								  @RequestParam(name = "pageSize", defaultValue = "1") Integer pageSize,
								  @RequestHeader("tenantId") String tenantId,
								  @RequestParam("tenantIds")String tenantIds);

}
